//
//  WBHomeViewController.swift
//  WeiBo
//
//  Created by liushaohua on 16/10/22.
//  Copyright © 2016年 liushaohua. All rights reserved.
//

import UIKit

class WBHomeViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()


    setupUI()
        
    }


    func setupUI(){
    
    setNavItem()
    
    }
    
    func setNavItem(){
        let leftBarBtn  = UIBarButtonItem(setHighlightedImg: "navigationbar_pop", title:nil, target: self, action: #selector(leftBarBtnClick))
        let rightBarBtn = UIBarButtonItem(setHighlightedImg: "navigationbar_friendsearch", title: nil, target: self, action: #selector(rightBarBtnClick))
        
        self.navigationItem.leftBarButtonItem = leftBarBtn
        self.navigationItem.rightBarButtonItem = rightBarBtn
    }
    
    //MARK: 跳转
    func rightBarBtnClick(){
        
        let testVC = WBTestViewController()
        testVC.hidesBottomBarWhenPushed = true
        
        navigationController?.pushViewController(testVC, animated: true)
        
    }

    
    func leftBarBtnClick(){
    
    print("扫一扫")
    
    }
    
    
    

}
